#define _CRT_SECURE_NO_WARNINGS 1

#include "Stack.h"
#include "sort.h"

void TestQuickSort()
{
	int a[] = { 2,4,5,1,0,7,8,3,9,6 };
	int len = sizeof(a) / sizeof(a[0]);

	PrintArray(a, len);

	QuickSort(a, 0, len - 1);

	PrintArray(a, len);
}

void TestSelectSort()
{
	int a[] = { 2,4,5,1,0,7,8,3,9,6 };
	int len = sizeof(a) / sizeof(a[0]);

	PrintArray(a, len);

	SelectSort(a, len);

	PrintArray(a, len);
}

void TestQuickSortNonR()
{
	int a[] = { 2,4,5,1,0,7,8,3,9,6 };
	int len = sizeof(a) / sizeof(a[0]);

	PrintArray(a, len);

	QuickSortNonR(a, 0, len - 1);

	PrintArray(a, len);
}

void TestMergeSort()
{
	int a[] = { 2,4,5,1,0,7,8,3,9,6 };
	int len = sizeof(a) / sizeof(a[0]);

	PrintArray(a, len);

	MergeSort(a, len);

	PrintArray(a, len);
}

int main()
{
	TestMergeSort();

	return 0;
}
